package com.zl.study.mybatis.demo.mapper;

import com.zl.study.mybatis.demo.entity.Blog;

import java.util.List;

public interface BlogMapper {
  Blog selectBlog(int id);

  Blog selectByTitle(Blog blog);

  int insert(Blog blog);

  int delete(int id);

  int update(Blog blog);

  List<?> selectWithMultiResultMap(int id);

  Blog selectWithMultiResultMap2(int id);

  Blog selectBlogJoinedWithAuthor(int id);

  Blog selectBlogWithAuthorUsingNestedQuery(int id);

  Blog selectBlogWithAuthorByProcedure(int id);

}
